{Data:article id="request" var="vo"}
<div class="layui-btn-group">
	<a class="layui-btn" href="__APP__/Profit/add/pid/{$vo.id}/module/Loan.html"><i class="layui-icon layui-icon-add-1"></i>新增</a>
</div>
<table class="layui-table" lay-filter="demo">
    <colgroup>
        <col width="60">
        <col width="120">
        <col>
    </colgroup>
    <thead>
    <tr>
        <th>序号</th>
        <th>日期</th>
        <th>金额</th>
        <th>操作</th>
    </tr> 
    </thead>
    <tbody>
        {data:loop name="Profit" pid="$vo['id']" module="Loan" limit="all" order="date asc" var="pvo"}
        <tr>
            <td>{$key+1}</td>
            <td>{$pvo.date|date='Y-m-d'}</td>
            <td>{$pvo.money}</td>
            <td>
                <div class="layui-btn-group">
                    <a data-href="__APP__/Profit/edit/id/{$pvo.id}.html" data-button="true" class="layui-btn layui-btn-primary layui-btn-sm popen" title="编辑"><i class="layui-icon layui-icon-edit"></i></a>
                    <a href="__APP__/Profit/del/id/{$pvo.id}.html" class="layui-btn layui-btn-primary layui-btn-sm" title="删除"><i class="layui-icon layui-icon-close"></i></a>
                </div>
            </td>
        </tr>
        {/data:loop}
    </tbody>
</table>

<script type="text/javascript">
    layui.use(['jquery'],function(){
        var $ = layui.jquery;
    });
</script>